﻿using DongFangGuoKai.WMSPlatform.Core;
using DongFangGuoKai.WMSPlatform.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.StackingStorageApp
{
    public partial class StackingStorageService : IStackingStorageService
    {


        public StackingStorageService(Repository<t_StackingStorage> stackingRepo,
            Repository<t_StackingStorageDetail> stackingDetail)
        {
            StackingRepo = stackingRepo;
            StackingDetailRepo = stackingDetail;
        }

        public Repository<t_StackingStorage> StackingRepo { get; }
        public Repository<t_StackingStorageDetail> StackingDetailRepo { get; }

        public t_StackingStorage GetStackingStorage(Expression<Func<t_StackingStorage, bool>> predicate)
        {
            return StackingRepo.GetFirst(predicate);
        }

    }
}
